package com.funny.feign;

import com.funny.constant.ServiceNameConstants;
import com.funny.entity.OrderProduction;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Ming
 * @description 积分服务
 * @fileSimpleName PointOpenFeignService
 * @fileName com.funny.feign.PointOpenFeignService
 * @date 2024年07月04日 18:38
 */
@FeignClient(value = ServiceNameConstants.SYSTEM_POINT)
public interface PointOpenFeignService {

    @PostMapping("/point/addPoint")
    String addPoint(@RequestBody OrderProduction production);

    @PostMapping("/point/addPoint2")
    String addPoint2(@RequestParam("productionName") String productionName);
}
